<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project source="2.7.1" version="1.0">
This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/).
<lib desc="#Wiring" name="0">
    <tool name="Splitter">
      <a name="facing" val="north"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </tool>
    <tool name="Pin">
      <a name="facing" val="south"/>
      <a name="width" val="4"/>
      <a name="tristate" val="false"/>
    </tool>
    <tool name="Constant">
      <a name="facing" val="north"/>
    </tool>
  </lib>
  <lib desc="#Gates" name="1">
    <tool name="NOT Gate">
      <a name="facing" val="north"/>
    </tool>
    <tool name="AND Gate">
      <a name="facing" val="north"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </tool>
    <tool name="OR Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="3"/>
    </tool>
    <tool name="NOR Gate">
      <a name="facing" val="north"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </tool>
    <tool name="XOR Gate">
      <a name="width" val="4"/>
      <a name="inputs" val="2"/>
    </tool>
  </lib>
  <lib desc="#Plexers" name="2">
    <tool name="Multiplexer">
      <a name="width" val="4"/>
    </tool>
  </lib>
  <lib desc="#Arithmetic" name="3">
    <tool name="Comparator">
      <a name="width" val="4"/>
    </tool>
  </lib>
  <lib desc="#Memory" name="4">
    <tool name="ROM">
      <a name="contents">addr/data: 8 8
0
</a>
    </tool>
  </lib>
  <lib desc="#I/O" name="5"/>
  <lib desc="#Base" name="6">
    <tool name="Text Tool">
      <a name="text" val=""/>
      <a name="font" val="SansSerif plain 12"/>
      <a name="halign" val="center"/>
      <a name="valign" val="base"/>
    </tool>
  </lib>
  <main name="main"/>
  <options>
    <a name="gateUndefined" val="ignore"/>
    <a name="simlimit" val="1000"/>
    <a name="simrand" val="0"/>
  </options>
  <mappings>
    <tool lib="6" map="Button2" name="Menu Tool"/>
    <tool lib="6" map="Button3" name="Menu Tool"/>
    <tool lib="6" map="Ctrl Button1" name="Menu Tool"/>
  </mappings>
  <toolbar>
    <tool lib="6" name="Poke Tool"/>
    <tool lib="6" name="Edit Tool"/>
    <tool lib="6" name="Text Tool">
      <a name="text" val=""/>
      <a name="font" val="SansSerif plain 12"/>
      <a name="halign" val="center"/>
      <a name="valign" val="base"/>
    </tool>
    <sep/>
    <tool lib="0" name="Pin">
      <a name="facing" val="north"/>
      <a name="tristate" val="false"/>
    </tool>
    <tool lib="0" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="labelloc" val="east"/>
    </tool>
    <tool lib="1" name="NOT Gate"/>
    <tool lib="1" name="AND Gate"/>
    <tool lib="1" name="OR Gate"/>
  </toolbar>
  <circuit name="main">
    <a name="circuit" val="main"/>
    <a name="clabel" val=""/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(150,190)" to="(340,190)"/>
    <wire from="(340,190)" to="(400,190)"/>
    <wire from="(190,140)" to="(190,210)"/>
    <wire from="(210,160)" to="(270,160)"/>
    <wire from="(160,140)" to="(160,150)"/>
    <wire from="(210,50)" to="(210,60)"/>
    <wire from="(160,40)" to="(280,40)"/>
    <wire from="(110,130)" to="(110,140)"/>
    <wire from="(240,100)" to="(290,100)"/>
    <wire from="(270,150)" to="(270,160)"/>
    <wire from="(100,120)" to="(150,120)"/>
    <wire from="(380,40)" to="(380,50)"/>
    <wire from="(320,160)" to="(320,180)"/>
    <wire from="(80,140)" to="(80,160)"/>
    <wire from="(150,190)" to="(150,210)"/>
    <wire from="(240,80)" to="(240,100)"/>
    <wire from="(230,110)" to="(230,130)"/>
    <wire from="(220,130)" to="(220,220)"/>
    <wire from="(110,40)" to="(110,130)"/>
    <wire from="(340,160)" to="(340,190)"/>
    <wire from="(240,100)" to="(240,130)"/>
    <wire from="(80,80)" to="(80,110)"/>
    <wire from="(130,150)" to="(160,150)"/>
    <wire from="(260,80)" to="(290,80)"/>
    <wire from="(80,140)" to="(110,140)"/>
    <wire from="(360,100)" to="(390,100)"/>
    <wire from="(360,20)" to="(390,20)"/>
    <wire from="(180,140)" to="(180,180)"/>
    <wire from="(250,90)" to="(250,130)"/>
    <wire from="(80,110)" to="(100,110)"/>
    <wire from="(360,20)" to="(360,60)"/>
    <wire from="(360,60)" to="(360,100)"/>
    <wire from="(380,80)" to="(380,120)"/>
    <wire from="(150,160)" to="(170,160)"/>
    <wire from="(200,130)" to="(220,130)"/>
    <wire from="(220,80)" to="(220,130)"/>
    <wire from="(260,80)" to="(260,130)"/>
    <wire from="(310,70)" to="(320,70)"/>
    <wire from="(280,120)" to="(290,120)"/>
    <wire from="(380,120)" to="(390,120)"/>
    <wire from="(200,120)" to="(210,120)"/>
    <wire from="(220,220)" to="(230,220)"/>
    <wire from="(70,110)" to="(80,110)"/>
    <wire from="(130,150)" to="(130,210)"/>
    <wire from="(320,180)" to="(380,180)"/>
    <wire from="(230,110)" to="(290,110)"/>
    <wire from="(250,80)" to="(250,90)"/>
    <wire from="(100,110)" to="(100,120)"/>
    <wire from="(400,110)" to="(400,120)"/>
    <wire from="(400,30)" to="(400,40)"/>
    <wire from="(390,120)" to="(390,130)"/>
    <wire from="(380,170)" to="(380,180)"/>
    <wire from="(210,50)" to="(320,50)"/>
    <wire from="(400,170)" to="(400,190)"/>
    <wire from="(280,40)" to="(280,120)"/>
    <wire from="(170,140)" to="(170,160)"/>
    <wire from="(110,130)" to="(150,130)"/>
    <wire from="(250,90)" to="(290,90)"/>
    <wire from="(100,20)" to="(100,110)"/>
    <wire from="(150,160)" to="(150,190)"/>
    <wire from="(170,180)" to="(170,210)"/>
    <wire from="(230,80)" to="(230,110)"/>
    <wire from="(380,40)" to="(400,40)"/>
    <wire from="(210,120)" to="(210,160)"/>
    <wire from="(100,20)" to="(120,20)"/>
    <wire from="(410,100)" to="(420,100)"/>
    <wire from="(410,20)" to="(420,20)"/>
    <wire from="(270,220)" to="(280,220)"/>
    <wire from="(350,60)" to="(360,60)"/>
    <wire from="(390,120)" to="(400,120)"/>
    <wire from="(170,180)" to="(180,180)"/>
    <wire from="(180,180)" to="(320,180)"/>
    <wire from="(70,140)" to="(80,140)"/>
    <wire from="(110,40)" to="(120,40)"/>
    <wire from="(330,80)" to="(330,130)"/>
    <wire from="(270,160)" to="(270,220)"/>
    <comp lib="0" loc="(310,70)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="5"/>
      <a name="incoming" val="5"/>
    </comp>
    <comp lib="0" loc="(170,210)" name="Pin">
      <a name="facing" val="north"/>
      <a name="tristate" val="false"/>
      <a name="label" val="S1"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(80,80)" name="Probe">
      <a name="facing" val="south"/>
      <a name="radix" val="10unsigned"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="6" loc="(221,25)" name="Text">
      <a name="text" val="Principal"/>
    </comp>
    <comp lib="0" loc="(230,220)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="f4"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(390,130)" name="NOR Gate">
      <a name="facing" val="north"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(330,130)" name="AND Gate">
      <a name="facing" val="north"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(80,160)" name="Probe">
      <a name="facing" val="north"/>
      <a name="radix" val="10unsigned"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(130,210)" name="Pin">
      <a name="facing" val="north"/>
      <a name="tristate" val="false"/>
      <a name="label" val="S3"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(270,150)" name="Splitter">
      <a name="facing" val="north"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(420,100)" name="Probe">
      <a name="facing" val="west"/>
      <a name="radix" val="10unsigned"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp loc="(200,120)" name="alu"/>
    <comp lib="1" loc="(380,50)" name="NOT Gate">
      <a name="facing" val="north"/>
    </comp>
    <comp lib="0" loc="(280,220)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="4"/>
      <a name="label" val="f3-f0"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(70,110)" name="Pin">
      <a name="width" val="4"/>
      <a name="tristate" val="false"/>
      <a name="label" val="A"/>
    </comp>
    <comp lib="3" loc="(160,30)" name="Comparator">
      <a name="width" val="4"/>
      <a name="mode" val="unsigned"/>
    </comp>
    <comp lib="0" loc="(420,20)" name="Probe">
      <a name="facing" val="west"/>
      <a name="radix" val="10signed"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="2" loc="(350,60)" name="Multiplexer">
      <a name="width" val="5"/>
      <a name="enable" val="false"/>
    </comp>
    <comp lib="0" loc="(210,60)" name="Splitter">
      <a name="facing" val="south"/>
      <a name="fanout" val="5"/>
      <a name="incoming" val="5"/>
    </comp>
    <comp lib="1" loc="(410,20)" name="Controlled Buffer">
      <a name="width" val="5"/>
    </comp>
    <comp lib="0" loc="(190,210)" name="Pin">
      <a name="facing" val="north"/>
      <a name="tristate" val="false"/>
      <a name="label" val="S0"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(70,140)" name="Pin">
      <a name="width" val="4"/>
      <a name="tristate" val="false"/>
      <a name="label" val="B"/>
    </comp>
    <comp lib="1" loc="(410,100)" name="Controlled Buffer">
      <a name="width" val="5"/>
    </comp>
    <comp lib="0" loc="(150,210)" name="Pin">
      <a name="facing" val="north"/>
      <a name="tristate" val="false"/>
      <a name="label" val="S2"/>
      <a name="labelloc" val="south"/>
    </comp>
  </circuit>
  <circuit name="FA">
    <a name="circuit" val="FA"/>
    <a name="clabel" val="FA"/>
    <a name="clabelup" val="north"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(130,110)" to="(130,120)"/>
    <wire from="(130,130)" to="(130,140)"/>
    <wire from="(310,160)" to="(330,160)"/>
    <wire from="(200,130)" to="(200,170)"/>
    <wire from="(180,120)" to="(230,120)"/>
    <wire from="(130,120)" to="(150,120)"/>
    <wire from="(130,130)" to="(150,130)"/>
    <wire from="(180,130)" to="(200,130)"/>
    <wire from="(270,130)" to="(270,150)"/>
    <wire from="(220,130)" to="(220,180)"/>
    <wire from="(270,150)" to="(280,150)"/>
    <wire from="(260,130)" to="(270,130)"/>
    <wire from="(200,170)" to="(280,170)"/>
    <wire from="(220,130)" to="(230,130)"/>
    <wire from="(120,110)" to="(130,110)"/>
    <wire from="(120,140)" to="(130,140)"/>
    <wire from="(120,180)" to="(220,180)"/>
    <wire from="(260,120)" to="(330,120)"/>
    <comp loc="(180,120)" name="HA"/>
    <comp loc="(260,120)" name="HA"/>
    <comp lib="0" loc="(330,120)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="S"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(310,160)" name="OR Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(120,180)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="Cin"/>
    </comp>
    <comp lib="0" loc="(330,160)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Cout"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(120,140)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="B"/>
    </comp>
    <comp lib="0" loc="(120,110)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="A"/>
    </comp>
  </circuit>
  <circuit name="HA">
    <a name="circuit" val="HA"/>
    <a name="clabel" val="HA"/>
    <a name="clabelup" val="north"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(90,120)" to="(120,120)"/>
    <wire from="(120,160)" to="(150,160)"/>
    <wire from="(90,140)" to="(100,140)"/>
    <wire from="(100,140)" to="(140,140)"/>
    <wire from="(100,140)" to="(100,180)"/>
    <wire from="(120,120)" to="(120,160)"/>
    <wire from="(120,120)" to="(140,120)"/>
    <wire from="(180,170)" to="(200,170)"/>
    <wire from="(180,130)" to="(200,130)"/>
    <wire from="(100,180)" to="(150,180)"/>
    <comp lib="1" loc="(180,170)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(90,140)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="B"/>
    </comp>
    <comp lib="1" loc="(180,130)" name="XOR Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(90,120)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="A"/>
    </comp>
    <comp lib="0" loc="(200,130)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="S"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(200,170)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="C"/>
      <a name="labelloc" val="east"/>
    </comp>
  </circuit>
  <circuit name="SUM4B">
    <a name="circuit" val="SUM4B"/>
    <a name="clabel" val="sumador 4b"/>
    <a name="clabelup" val="north"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(100,80)" to="(290,80)"/>
    <wire from="(290,170)" to="(290,180)"/>
    <wire from="(290,70)" to="(290,80)"/>
    <wire from="(440,160)" to="(440,180)"/>
    <wire from="(140,110)" to="(180,110)"/>
    <wire from="(340,160)" to="(340,190)"/>
    <wire from="(170,70)" to="(170,100)"/>
    <wire from="(260,150)" to="(260,240)"/>
    <wire from="(110,170)" to="(110,200)"/>
    <wire from="(380,70)" to="(380,160)"/>
    <wire from="(380,190)" to="(470,190)"/>
    <wire from="(270,150)" to="(300,150)"/>
    <wire from="(280,120)" to="(280,160)"/>
    <wire from="(190,160)" to="(210,160)"/>
    <wire from="(240,150)" to="(260,150)"/>
    <wire from="(160,160)" to="(160,210)"/>
    <wire from="(190,110)" to="(190,160)"/>
    <wire from="(290,170)" to="(300,170)"/>
    <wire from="(380,160)" to="(390,160)"/>
    <wire from="(110,200)" to="(250,200)"/>
    <wire from="(240,160)" to="(250,160)"/>
    <wire from="(110,150)" to="(120,150)"/>
    <wire from="(110,170)" to="(120,170)"/>
    <wire from="(200,190)" to="(340,190)"/>
    <wire from="(350,70)" to="(350,120)"/>
    <wire from="(370,90)" to="(370,150)"/>
    <wire from="(190,110)" to="(320,110)"/>
    <wire from="(380,170)" to="(380,190)"/>
    <wire from="(110,70)" to="(110,150)"/>
    <wire from="(100,80)" to="(100,160)"/>
    <wire from="(200,90)" to="(370,90)"/>
    <wire from="(200,170)" to="(200,190)"/>
    <wire from="(200,70)" to="(200,90)"/>
    <wire from="(170,150)" to="(170,240)"/>
    <wire from="(450,150)" to="(450,240)"/>
    <wire from="(170,100)" to="(270,100)"/>
    <wire from="(350,150)" to="(350,240)"/>
    <wire from="(180,150)" to="(210,150)"/>
    <wire from="(420,150)" to="(450,150)"/>
    <wire from="(70,210)" to="(160,210)"/>
    <wire from="(280,160)" to="(300,160)"/>
    <wire from="(330,150)" to="(350,150)"/>
    <wire from="(370,150)" to="(390,150)"/>
    <wire from="(420,160)" to="(440,160)"/>
    <wire from="(140,70)" to="(140,110)"/>
    <wire from="(180,110)" to="(180,150)"/>
    <wire from="(250,160)" to="(250,200)"/>
    <wire from="(320,70)" to="(320,110)"/>
    <wire from="(100,160)" to="(120,160)"/>
    <wire from="(290,180)" to="(440,180)"/>
    <wire from="(150,150)" to="(170,150)"/>
    <wire from="(330,160)" to="(340,160)"/>
    <wire from="(380,170)" to="(390,170)"/>
    <wire from="(150,160)" to="(160,160)"/>
    <wire from="(200,170)" to="(210,170)"/>
    <wire from="(270,100)" to="(270,150)"/>
    <wire from="(280,120)" to="(350,120)"/>
    <comp loc="(330,150)" name="FA"/>
    <comp lib="0" loc="(200,70)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="A0"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(260,240)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="S2"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(380,70)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="B0"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(170,240)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="S3"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(350,70)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="B1"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(450,240)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="S0"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(320,70)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="B2"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp loc="(240,150)" name="FA"/>
    <comp lib="0" loc="(470,190)" name="Pin">
      <a name="facing" val="west"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Cin"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(350,240)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="S1"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(170,70)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="A1"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(110,70)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="A3"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp loc="(150,150)" name="FA"/>
    <comp lib="0" loc="(140,70)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="A2"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp loc="(420,150)" name="FA"/>
    <comp lib="0" loc="(70,210)" name="Pin">
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="S4"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(290,70)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="B3"/>
      <a name="labelloc" val="north"/>
    </comp>
  </circuit>
  <circuit name="bloque B">
    <a name="circuit" val="bloque B"/>
    <a name="clabel" val="bloque B"/>
    <a name="clabelup" val="north"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(530,250)" to="(530,260)"/>
    <wire from="(250,250)" to="(250,260)"/>
    <wire from="(230,250)" to="(230,260)"/>
    <wire from="(210,190)" to="(210,200)"/>
    <wire from="(420,120)" to="(420,130)"/>
    <wire from="(430,290)" to="(430,300)"/>
    <wire from="(510,250)" to="(510,260)"/>
    <wire from="(490,190)" to="(490,200)"/>
    <wire from="(310,190)" to="(310,200)"/>
    <wire from="(330,250)" to="(330,260)"/>
    <wire from="(350,250)" to="(350,260)"/>
    <wire from="(340,100)" to="(340,120)"/>
    <wire from="(410,230)" to="(410,250)"/>
    <wire from="(450,230)" to="(450,250)"/>
    <wire from="(250,120)" to="(250,200)"/>
    <wire from="(520,100)" to="(520,120)"/>
    <wire from="(350,120)" to="(350,200)"/>
    <wire from="(550,170)" to="(550,200)"/>
    <wire from="(240,100)" to="(240,120)"/>
    <wire from="(530,120)" to="(530,200)"/>
    <wire from="(270,170)" to="(370,170)"/>
    <wire from="(270,170)" to="(270,200)"/>
    <wire from="(370,170)" to="(370,200)"/>
    <wire from="(210,190)" to="(310,190)"/>
    <wire from="(400,190)" to="(490,190)"/>
    <wire from="(460,170)" to="(550,170)"/>
    <wire from="(420,160)" to="(420,200)"/>
    <wire from="(410,250)" to="(420,250)"/>
    <wire from="(420,120)" to="(430,120)"/>
    <wire from="(520,120)" to="(530,120)"/>
    <wire from="(350,250)" to="(360,250)"/>
    <wire from="(340,120)" to="(350,120)"/>
    <wire from="(250,250)" to="(260,250)"/>
    <wire from="(240,120)" to="(250,120)"/>
    <wire from="(530,250)" to="(540,250)"/>
    <wire from="(550,170)" to="(560,170)"/>
    <wire from="(590,170)" to="(600,170)"/>
    <wire from="(520,290)" to="(520,300)"/>
    <wire from="(230,120)" to="(230,130)"/>
    <wire from="(240,290)" to="(240,300)"/>
    <wire from="(440,250)" to="(440,260)"/>
    <wire from="(420,250)" to="(420,260)"/>
    <wire from="(400,190)" to="(400,200)"/>
    <wire from="(510,120)" to="(510,130)"/>
    <wire from="(330,120)" to="(330,130)"/>
    <wire from="(340,290)" to="(340,300)"/>
    <wire from="(260,230)" to="(260,250)"/>
    <wire from="(320,230)" to="(320,250)"/>
    <wire from="(360,230)" to="(360,250)"/>
    <wire from="(430,100)" to="(430,120)"/>
    <wire from="(500,230)" to="(500,250)"/>
    <wire from="(490,190)" to="(600,190)"/>
    <wire from="(440,120)" to="(440,200)"/>
    <wire from="(220,230)" to="(220,250)"/>
    <wire from="(460,170)" to="(460,200)"/>
    <wire from="(540,230)" to="(540,250)"/>
    <wire from="(310,190)" to="(400,190)"/>
    <wire from="(370,170)" to="(460,170)"/>
    <wire from="(230,160)" to="(230,200)"/>
    <wire from="(330,160)" to="(330,200)"/>
    <wire from="(510,160)" to="(510,200)"/>
    <wire from="(440,250)" to="(450,250)"/>
    <wire from="(430,120)" to="(440,120)"/>
    <wire from="(500,250)" to="(510,250)"/>
    <wire from="(510,120)" to="(520,120)"/>
    <wire from="(320,250)" to="(330,250)"/>
    <wire from="(330,120)" to="(340,120)"/>
    <wire from="(220,250)" to="(230,250)"/>
    <wire from="(230,120)" to="(240,120)"/>
    <comp lib="0" loc="(340,300)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="label" val="d2"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="1" loc="(260,230)" name="AND Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(520,100)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="b0"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(520,300)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="label" val="d0"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(240,300)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="label" val="d3"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="1" loc="(240,290)" name="OR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(500,230)" name="AND Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(430,100)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="b1"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="1" loc="(540,230)" name="AND Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(410,230)" name="AND Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(600,170)" name="Pin">
      <a name="facing" val="west"/>
      <a name="tristate" val="false"/>
      <a name="label" val="S2"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(510,160)" name="NOT Gate">
      <a name="facing" val="south"/>
    </comp>
    <comp lib="1" loc="(230,160)" name="NOT Gate">
      <a name="facing" val="south"/>
    </comp>
    <comp lib="1" loc="(450,230)" name="AND Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(420,160)" name="NOT Gate">
      <a name="facing" val="south"/>
    </comp>
    <comp lib="1" loc="(330,160)" name="NOT Gate">
      <a name="facing" val="south"/>
    </comp>
    <comp lib="0" loc="(430,300)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="label" val="d1"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="1" loc="(320,230)" name="AND Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(360,230)" name="AND Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(240,100)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="b3"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(600,190)" name="Pin">
      <a name="facing" val="west"/>
      <a name="tristate" val="false"/>
      <a name="label" val="S1"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(520,290)" name="OR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(340,290)" name="OR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(220,230)" name="AND Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(430,290)" name="OR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(340,100)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="b2"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="1" loc="(560,170)" name="NOT Gate">
      <a name="facing" val="west"/>
    </comp>
  </circuit>
  <circuit name="aritmetico">
    <a name="circuit" val="aritmetico"/>
    <a name="clabel" val="aritm"/>
    <a name="clabelup" val="north"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(130,190)" to="(130,200)"/>
    <wire from="(170,110)" to="(170,120)"/>
    <wire from="(190,110)" to="(190,120)"/>
    <wire from="(230,310)" to="(280,310)"/>
    <wire from="(140,180)" to="(140,200)"/>
    <wire from="(130,150)" to="(130,170)"/>
    <wire from="(150,170)" to="(150,200)"/>
    <wire from="(170,230)" to="(170,260)"/>
    <wire from="(270,240)" to="(310,240)"/>
    <wire from="(210,130)" to="(240,130)"/>
    <wire from="(160,270)" to="(250,270)"/>
    <wire from="(80,30)" to="(80,130)"/>
    <wire from="(110,150)" to="(110,190)"/>
    <wire from="(160,160)" to="(160,200)"/>
    <wire from="(190,310)" to="(190,350)"/>
    <wire from="(80,130)" to="(100,130)"/>
    <wire from="(210,140)" to="(230,140)"/>
    <wire from="(170,150)" to="(170,200)"/>
    <wire from="(190,150)" to="(190,200)"/>
    <wire from="(150,230)" to="(150,280)"/>
    <wire from="(160,300)" to="(160,350)"/>
    <wire from="(160,300)" to="(240,300)"/>
    <wire from="(150,70)" to="(160,70)"/>
    <wire from="(210,210)" to="(220,210)"/>
    <wire from="(110,210)" to="(120,210)"/>
    <wire from="(70,30)" to="(80,30)"/>
    <wire from="(180,250)" to="(250,250)"/>
    <wire from="(140,150)" to="(140,160)"/>
    <wire from="(180,110)" to="(180,120)"/>
    <wire from="(200,110)" to="(200,120)"/>
    <wire from="(110,290)" to="(290,290)"/>
    <wire from="(220,210)" to="(220,350)"/>
    <wire from="(110,210)" to="(110,290)"/>
    <wire from="(180,230)" to="(180,250)"/>
    <wire from="(160,70)" to="(160,90)"/>
    <wire from="(190,310)" to="(230,310)"/>
    <wire from="(240,300)" to="(280,300)"/>
    <wire from="(150,280)" to="(250,280)"/>
    <wire from="(120,150)" to="(120,180)"/>
    <wire from="(320,300)" to="(340,300)"/>
    <wire from="(230,140)" to="(230,310)"/>
    <wire from="(240,130)" to="(240,300)"/>
    <wire from="(160,230)" to="(160,270)"/>
    <wire from="(120,180)" to="(140,180)"/>
    <wire from="(110,190)" to="(130,190)"/>
    <wire from="(140,160)" to="(160,160)"/>
    <wire from="(130,170)" to="(150,170)"/>
    <wire from="(180,150)" to="(180,200)"/>
    <wire from="(200,150)" to="(200,200)"/>
    <wire from="(170,260)" to="(250,260)"/>
    <comp lib="0" loc="(100,130)" name="Splitter">
      <a name="facing" val="south"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(310,240)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="4"/>
      <a name="label" val="f3-f0"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(160,350)" name="Pin">
      <a name="facing" val="north"/>
      <a name="tristate" val="false"/>
      <a name="label" val="S2"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(150,70)" name="Pin">
      <a name="width" val="4"/>
      <a name="tristate" val="false"/>
      <a name="label" val="B"/>
    </comp>
    <comp lib="0" loc="(70,30)" name="Pin">
      <a name="width" val="4"/>
      <a name="tristate" val="false"/>
      <a name="label" val="A"/>
    </comp>
    <comp lib="6" loc="(212,17)" name="Text">
      <a name="text" val="Parte aritmética"/>
    </comp>
    <comp loc="(210,130)" name="bloque B"/>
    <comp lib="1" loc="(320,300)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="3"/>
      <a name="negate1" val="true"/>
      <a name="negate2" val="true"/>
    </comp>
    <comp lib="0" loc="(220,350)" name="Pin">
      <a name="facing" val="north"/>
      <a name="tristate" val="false"/>
      <a name="label" val="S0"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(190,350)" name="Pin">
      <a name="facing" val="north"/>
      <a name="tristate" val="false"/>
      <a name="label" val="S1"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(340,300)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="f4"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(160,90)" name="Splitter">
      <a name="facing" val="south"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(270,240)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp loc="(210,210)" name="SUM4B"/>
  </circuit>
  <circuit name="logico">
    <a name="circuit" val="logico"/>
    <a name="clabel" val="log"/>
    <a name="clabelup" val="north"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(130,100)" to="(130,170)"/>
    <wire from="(140,140)" to="(140,210)"/>
    <wire from="(290,200)" to="(410,200)"/>
    <wire from="(200,190)" to="(250,190)"/>
    <wire from="(280,260)" to="(280,270)"/>
    <wire from="(270,270)" to="(270,280)"/>
    <wire from="(290,260)" to="(290,270)"/>
    <wire from="(300,270)" to="(300,280)"/>
    <wire from="(270,220)" to="(270,240)"/>
    <wire from="(130,170)" to="(130,250)"/>
    <wire from="(90,100)" to="(130,100)"/>
    <wire from="(100,320)" to="(140,320)"/>
    <wire from="(240,210)" to="(240,300)"/>
    <wire from="(190,250)" to="(230,250)"/>
    <wire from="(130,250)" to="(130,280)"/>
    <wire from="(130,250)" to="(160,250)"/>
    <wire from="(200,120)" to="(230,120)"/>
    <wire from="(210,300)" to="(240,300)"/>
    <wire from="(140,210)" to="(140,320)"/>
    <wire from="(130,170)" to="(150,170)"/>
    <wire from="(130,100)" to="(150,100)"/>
    <wire from="(130,280)" to="(150,280)"/>
    <wire from="(230,200)" to="(250,200)"/>
    <wire from="(230,180)" to="(250,180)"/>
    <wire from="(230,200)" to="(230,250)"/>
    <wire from="(270,270)" to="(280,270)"/>
    <wire from="(290,270)" to="(300,270)"/>
    <wire from="(140,210)" to="(150,210)"/>
    <wire from="(140,320)" to="(150,320)"/>
    <wire from="(140,140)" to="(150,140)"/>
    <wire from="(240,210)" to="(250,210)"/>
    <wire from="(230,120)" to="(230,180)"/>
    <comp lib="2" loc="(290,200)" name="Multiplexer">
      <a name="select" val="2"/>
      <a name="width" val="4"/>
      <a name="enable" val="false"/>
    </comp>
    <comp lib="1" loc="(190,250)" name="NOT Gate">
      <a name="width" val="4"/>
    </comp>
    <comp lib="0" loc="(90,100)" name="Pin">
      <a name="width" val="4"/>
      <a name="tristate" val="false"/>
      <a name="label" val="A"/>
    </comp>
    <comp lib="0" loc="(270,240)" name="Splitter">
      <a name="facing" val="south"/>
    </comp>
    <comp lib="6" loc="(268,79)" name="Text">
      <a name="text" val="Parte lógica"/>
    </comp>
    <comp lib="0" loc="(100,320)" name="Pin">
      <a name="width" val="4"/>
      <a name="tristate" val="false"/>
      <a name="label" val="B"/>
    </comp>
    <comp lib="1" loc="(200,190)" name="OR Gate">
      <a name="width" val="4"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(210,300)" name="XOR Gate">
      <a name="width" val="4"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(270,280)" name="Pin">
      <a name="facing" val="north"/>
      <a name="tristate" val="false"/>
      <a name="label" val="S2"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="1" loc="(200,120)" name="AND Gate">
      <a name="width" val="4"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(300,280)" name="Pin">
      <a name="facing" val="north"/>
      <a name="tristate" val="false"/>
      <a name="label" val="S1"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(410,200)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="4"/>
      <a name="label" val="F"/>
      <a name="labelloc" val="east"/>
    </comp>
  </circuit>
  <circuit name="alu">
    <a name="circuit" val="alu"/>
    <a name="clabel" val="ALU"/>
    <a name="clabelup" val="north"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(110,60)" to="(110,130)"/>
    <wire from="(100,70)" to="(100,140)"/>
    <wire from="(80,90)" to="(80,160)"/>
    <wire from="(130,150)" to="(130,160)"/>
    <wire from="(150,210)" to="(150,220)"/>
    <wire from="(130,80)" to="(130,90)"/>
    <wire from="(270,140)" to="(320,140)"/>
    <wire from="(60,60)" to="(110,60)"/>
    <wire from="(80,160)" to="(130,160)"/>
    <wire from="(90,180)" to="(140,180)"/>
    <wire from="(80,90)" to="(130,90)"/>
    <wire from="(90,100)" to="(140,100)"/>
    <wire from="(260,150)" to="(260,170)"/>
    <wire from="(90,100)" to="(90,180)"/>
    <wire from="(110,170)" to="(220,170)"/>
    <wire from="(140,80)" to="(140,100)"/>
    <wire from="(180,60)" to="(180,80)"/>
    <wire from="(170,200)" to="(170,220)"/>
    <wire from="(60,140)" to="(100,140)"/>
    <wire from="(220,170)" to="(260,170)"/>
    <wire from="(140,180)" to="(140,210)"/>
    <wire from="(180,100)" to="(180,130)"/>
    <wire from="(140,150)" to="(140,180)"/>
    <wire from="(180,100)" to="(210,100)"/>
    <wire from="(180,80)" to="(210,80)"/>
    <wire from="(150,60)" to="(180,60)"/>
    <wire from="(160,140)" to="(250,140)"/>
    <wire from="(100,70)" to="(120,70)"/>
    <wire from="(100,140)" to="(120,140)"/>
    <wire from="(160,130)" to="(180,130)"/>
    <wire from="(150,200)" to="(170,200)"/>
    <wire from="(150,150)" to="(150,200)"/>
    <wire from="(110,170)" to="(110,220)"/>
    <wire from="(140,210)" to="(150,210)"/>
    <wire from="(110,130)" to="(120,130)"/>
    <wire from="(110,60)" to="(120,60)"/>
    <wire from="(240,90)" to="(310,90)"/>
    <wire from="(130,160)" to="(130,220)"/>
    <wire from="(220,110)" to="(220,170)"/>
    <comp lib="0" loc="(130,220)" name="Pin">
      <a name="facing" val="north"/>
      <a name="tristate" val="false"/>
      <a name="label" val="S2"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(110,220)" name="Pin">
      <a name="facing" val="north"/>
      <a name="tristate" val="false"/>
      <a name="label" val="S3"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp loc="(160,130)" name="aritmetico"/>
    <comp lib="2" loc="(240,90)" name="Multiplexer">
      <a name="width" val="4"/>
      <a name="enable" val="false"/>
    </comp>
    <comp loc="(150,60)" name="logico"/>
    <comp lib="6" loc="(195,28)" name="Text">
      <a name="text" val="Diagrama de bloques de la ALU"/>
    </comp>
    <comp lib="0" loc="(60,60)" name="Pin">
      <a name="width" val="4"/>
      <a name="tristate" val="false"/>
      <a name="label" val="A"/>
    </comp>
    <comp lib="0" loc="(60,140)" name="Pin">
      <a name="width" val="4"/>
      <a name="tristate" val="false"/>
      <a name="label" val="B"/>
    </comp>
    <comp lib="0" loc="(150,220)" name="Pin">
      <a name="facing" val="north"/>
      <a name="tristate" val="false"/>
      <a name="label" val="S1"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="1" loc="(270,140)" name="Controlled Buffer"/>
    <comp lib="0" loc="(320,140)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="f4"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(170,220)" name="Pin">
      <a name="facing" val="north"/>
      <a name="tristate" val="false"/>
      <a name="label" val="S0"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(310,90)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="4"/>
      <a name="label" val="f0-f3"/>
      <a name="labelloc" val="east"/>
    </comp>
  </circuit>
</project>
